import React, {Component, lazy} from 'react';
import {Route, Switch, Redirect} from 'react-router-dom';

const Index = lazy(() => import('../components/User/Index'));

class User extends Component {
	render() {
		return (
			<div>
				<div className="home-title">用户管理</div>
				<Switch>
					<Route path="/user/index" component={Index}/>
					<Redirect from="/user" to="/user/index"/>
				</Switch>
			</div>
		);
	}
}

export default User;